package com.jing.product.domain.po;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Author：HaoYunde
 * @Package：com.jing.product.domain.po
 * @Project：Jing
 * @name：ProductPromotion
 * @Date：2024/6/5 20:39
 */
@Data
@ApiModel(value = "特惠促销")
public class ProductPromotion {
    @ApiModelProperty(value = "id")
    private Integer id;
    @ApiModelProperty(value = "商品id")
    private Integer productId;
    @ApiModelProperty(value = "促销开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date promotionStartTime;
    @ApiModelProperty(value = "促销结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date promotionEndTime;
    @ApiModelProperty(value = "促销价格")
    private Double promotionPrice;
}
